#!/usr/bin/python3
# -*- coding:utf-8 -*-
# __author__ = '__Tony__'



from .yg import yg_router
from .sys import sys_router
from .user import user_router
from .test import test_router
from fastapi import APIRouter
from fastapi.templating import Jinja2Templates
from database import engine, SqlBase


SqlBase.metadata.create_all(bind=engine)

# 路由汇总
yg_crm_app = APIRouter()
# router.include_router(resources_router, dependencies=[Depends(get_current_admin)])
yg_crm_app.include_router(yg_router, prefix='/yg')
yg_crm_app.include_router(user_router, prefix='/user')
yg_crm_app.include_router(sys_router, prefix='/sys')
templates = Jinja2Templates(directory='./app/yg_crm/templates')